import { ref } from "vue";

export const tableConfig = [
    { prop: "orderCode", label: "维保编号", minWidth: "170" },
    { prop: "areaLocationName", label: "设备区域", minWidth: "100" },
    { prop: "equipmentCode", label: "设备编号", minWidth: "120" },
    { prop: "equipmentName", label: "设备对象", minWidth: "120" },
    { prop: "majorName", label: "专业", minWidth: "70" },
    { prop: "typeName", label: "维保等级", minWidth: "70" },
    { prop: "responsibleDepartmentName", label: "负责部门", minWidth: "100" },
    { prop: "state", label: "维保状态", minWidth: "70", slotName: "state" },
    { prop: "repairCode", label: "工单编号", minWidth: "150" },
    { prop: "startDate", label: "维保执行时间", minWidth: "100", slotName: "startDate" },
    { label: "操作", minWidth: "50", slotName: "operate", fixed: "right" }
];
export const formConfig = ref([
    {
        formType: "select",
        formName: "areaLocation",
        labelName: "区域设置",
        placeholder: "请选择区域位置",
        style: {
            width: "194px"
        },
        options: []
    },
    {
        formType: "select",
        formName: "equipmentId",
        labelName: "设备对象",
        placeholder: "请选择设备对象",
        style: {
            width: "194px"
        },
        options: []
    },
    {
        formType: "select",
        formName: "responsibleDepartment",
        labelName: "负责部门",
        placeholder: "请选择负责部门",
        style: {
            width: "194px"
        },
        options: []
    },
    {
        formType: "select",
        formName: "state",
        labelName: "维保状态",
        placeholder: "请选择维保状态",
        style: {
            width: "194px"
        },
        options: []
    },
    {
        formType: "select",
        formName: "major",
        labelName: "对应专业",
        placeholder: "请选择对应专业",
        style: {
            width: "194px"
        },
        options: []
    },
    {
        formType: "select",
        formName: "type",
        labelName: "维保等级",
        placeholder: "请选择维保等级",
        style: {
            width: "194px"
        },
        options: []
    }
]);
export const popupFormSetConfig = [
    {
        formType: "select",
        formName: "position",
        labelName: "区域设置",
        placeholder: "请选择区域位置",
        style: {
            width: "212px"
        },
        options: []
    },
    {
        formType: "select",
        formName: "numberName",
        labelName: "编号名称",
        placeholder: "请选择编号名称",
        style: {
            width: "212px"
        },
        options: []
    },
    {
        formType: "select",
        formName: "orderLevel",
        labelName: "工单等级",
        placeholder: "请选择对应专业",
        style: {
            width: "212px"
        },
        options: []
    }
];
export const popupFormGetConfig = [
    { formType: "text", formName: "projectId", labelName: "项目名称" },
    { formType: "text", formName: "name", labelName: "联系人姓名" },
    { formType: "text", formName: "phone", labelName: "联系人电话" },
    { formType: "text", formName: "position", labelName: "岗位名称" }
];
